<template>
  <div class="dashboard-container">
    <div class="dashboard-text">wordOrderData:</div>
    <el-button @click.native.prevent="WorkOrderDataGetInfo">客户数据</el-button>
  </div>
</template>

<!-- <script>
import datastatistic from '@/api/datastatistic'
export default {
  data() {
    return {
      list: []
    }
  },
  created() {
    datastatistic.getDatastatisticList()
      .then(response => {
        this.list = response.data.datastatistics
      })
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row)
    },
    handleDelete(index, row) {
      console.log(index, row)
    }
  }
}
</script> -->

<script>
import { mapGetters } from 'vuex'
export default {
  name: 'WorkOrderDataInfo',
  computed: {
    ...mapGetters([
      'wordOrderData'
    ])
  },
  methods: {
    WorkOrderDataInfo() {
      this.$store.dispatch('WorkOrderDataInfo').then(() => {
        console.log('over')
      })
    }
  }

}
</script>
